//
//  Functions.h
//  Wi-Fi Party remade-1
//
//  Created by Vieta Ken on 2021/3/7.
//

#ifndef Functions_h
#define Functions_h


#endif /* Functions_h */

#import <Foundation/Foundation.h>
#import <AudioUnit/AudioUnit.h>
#import <netinet/in.h>
#import "Queue.h"
#import "config.h"
#import "partyPacket.h"

void check_int(int num, int noerr, char* msg);
void check_bool(bool succeeded, char* msg);
void check_nil(id whatever, char* msg);
void mix_audio_streams(NSArray *tracks,int length,Queue *output);
void receive_from_udp(int receive_socket,NSMutableDictionary *recv_dict,dispatch_queue_t dispatch_queue);
void cleanup(NSMutableDictionary *recv_dict);
